require 'watir'
include Watir
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'watir/testUnitAddons'
require 'watir/testcase'
require 'watir/contrib/enabled_popup'

class TC_Admin < Test::Unit::TestCase
  def test_12
    $ie.goto($UniVar)
    $ie.refresh()
    $ie.refresh()
    $ie.link(:text, 'Control Panel').click
    $ie.link(:text, 'Administration').click
    $ie.table(:index, 10).click
    $ie.link(:index, 15).click
    $ie.radio(:id, /ctl00_ctl00_TaskRegion_Gallery_0/).set
    $ie.link(:text, 'Save').click
    $ie.link(:text, 'Exit Control Panel and Return to Site').click
    assert(!$ie.link(:text, 'Photos').exists?)
    
    $ie.link(:text, 'Control Panel').click
    $ie.link(:text, 'Administration').click
    $ie.table(:index, 10).click
    $ie.link(:index, 15).click
    $ie.radio(:id, /ctl00_ctl00_TaskRegion_Gallery_1/).set
    $ie.link(:text, 'Save').click
    
  end
end